package com.atguigu.gmall.list.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.util.Date;

/**
 * @author A
 * @version 1.0
 * @description: TODO
 * @date 2024/9/27 5:25
 */
@Document(shards = 1,replicas = 1,indexName = "person")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Person {
    @Id
    private Long id;

    private String name;

    private String email;

    private String address;

    private Date birthday;
}
